package io.wit.modules.sys.service.impl;

import io.wit.modules.sys.dao.SysItemDao;
import io.wit.modules.sys.entity.SysItemEntity;
import io.wit.modules.sys.service.SysItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("SysItemService")
public class SysItemServiceImpl implements SysItemService {
	@Autowired
	private SysItemDao SysItemDao;
	
	@Override
	public SysItemEntity queryObject(Long itemId){
		return SysItemDao.queryObject(itemId);
	}
	
	@Override
	public List<SysItemEntity> queryList(Map<String, Object> map){
		return SysItemDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return SysItemDao.queryTotal(map);
	}
	
	@Override
	public void save(SysItemEntity SysItem){
		SysItemDao.save(SysItem);
	}
	
	@Override
	public void update(SysItemEntity SysItem){
		SysItemDao.update(SysItem);
	}
	
	@Override
	public void delete(Long itemId){
		SysItemDao.delete(itemId);
	}
	
	@Override
	public void deleteBatch(Long[] itemIds){
		SysItemDao.deleteBatch(itemIds);
	}

	@Override
	public List<SysItemEntity> queryNotItemList() {
		return SysItemDao.queryNotItemList();
	}

	@Override
	public List<SysItemEntity> queryItemList(Long itemId) {
		return SysItemDao.queryItemList(itemId);
	}

	@Override
	public List<SysItemEntity> getUint(){
		return SysItemDao.getUint();
	}

	@Override
	public List<SysItemEntity> getTypeRoles(final Long subjectId){
		return SysItemDao.getTypeRoles(subjectId);
	}

    @Override
    public List<SysItemEntity> getTypeDept(final Long subjectId){
        return SysItemDao.getTypeDept(subjectId);
    }
}